package com.gitee.lougnib.simple.lang.model;

/**
 * 含 2 种类型的对象，用于一个方法返回 2 种类型的值。
 *
 * @author lougnib@163.com
 * @since 2021/08/05
 * @version 2021/08/05
 */
public class TwoObjects<A, B> {

	private final A first;

	private final B second;

	public TwoObjects(A first, B second) {
		this.first = first;
		this.second = second;
	}

	public A getFirst() {
		return this.first;
	}

	public B getSecond() {
		return this.second;
	}
}
